package com.zhaowu;

import com.google.gson.Gson;
import com.zhaowu.utils.LocationUtils;
import okhttp3.*;

import javax.swing.*;
import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.IOException;
import java.io.StringWriter;
import java.util.HashMap;
import java.util.Map;

public class ClientMain {
    private Frame frame;
    private Button bn, bs, be, bw, bc;

    private Button button1, button2, button3;

    public void go() throws IOException {
        frame = new Frame("HttpClient");
        LocationUtils.center(frame);
        LocationUtils.addJSeparator(frame);
        Panel p0 = new Panel();
        Panel p = new Panel();
        bw = new Button("0");
        p0.add(bw);
        frame.add(p);
        frame.add(p0);
        FlowLayout f = new FlowLayout();
        f.setVgap(150);
        p.setLayout(f);
        bn = new Button("a");
        bs = new Button("b");
        be = new Button("c");
        p.add(bn);
        p.add(be);
        p.add(bs);
        frame.setVisible(true);


    }

    public static void main(String[] args) throws IOException {
        ClientMain test = new ClientMain();
        test.go();
    }


}
